
public class RunEchos {
	public static void main(String[] args) throws Exception {
		Echo e1 = new Echo("Hello world", 400);
		Echo e2 = new Echo("Computer Science", 240);
		
		e1.start();
		e2.start();
		
		Thread.sleep(2000);
		e2.interrupt(); // Terminate the echo
		
		Thread.sleep(2000);
		e1.interrupt();
		
		e1.join();
		e2.join();
	}
}
